﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="managerList.ascx.cs" Inherits="Com.Web.coffinegurunaru.manager.manager.managerList" %>
<% foreach(Com.Library.DB.Manager.ManagerEntity item in ManagerList) { %>
                <tr data='{n4ManagerSN:<%= item.n4ManagerSN %>, strManagerID:"<%= item.strManagerID %>", strManagerName:"<%= item.strManagerName %>"}'>
					<td style="text-align:center;"><%= item.n4ManagerSN %></td>
					<td style="text-align:center;"><%= item.strManagerID %></td>
					<td style="text-align:center;"><%= item.strManagerName %></td>
					<td style="text-align:center;">
<% if ( this.IsManager == 1 || this.ManagerSN == item.n4ManagerSN ) { %>
						<button class="modifyButton" onclick="$.Manager.modify(this); return false;">수정</button>
<% } %>
<% if ( this.IsManager == 1 ) { %>
						<button class="removeButton" onclick="$.Manager.remove(this); return false;">삭제</button>
						<% if ( item.IsManager == 0 ) { %>
						<button class="managerAddButton" onclick="$.Manager.managerAdd(this); return false;">전체관리자변경</button>
						<% } else { %>
						<button class="managerResetButton" onclick="$.Manager.managerReset(this); return false;">전체관리자삭제</button>
						<% } %>
<% } %>
					</td>
                </tr>
<% } %>